package com.example.administrator.kaohedemo.Action;

import com.example.administrator.kaohedemo.Dispatcher.Dispatcher;

/**
 * Created by Administrator on 2016/6/20.
 */
public class ActionCreator {

    protected Dispatcher dispatcher=Dispatcher.getInstense();

    public void  SendDefaultMessage(String value){
        dispatcher.dispatch(Actions.TYPE_DEFAULT, Actions.KEY_DEFAULT,value);
    }

    public void SendNetLoadStart(){
        dispatcher.dispatch(Actions.TYPE_NETWORK_START);
    }

    public void SendNetLoadEnd(){
        dispatcher.dispatch(Actions.TYPE_NETWORK_END);
    }

}
